<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>像素鸟</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>

<body>

</body>

</html>
<script>
    // 代码须在Live server中打开,要安装Live server插件,鼠标右键Open with Live server打开浏览器同步
    for (let i = 0; i < 100; i++) {
        ((i)=>{
            setTimeout(()=>{
                console.log('%c ',
                    'font-size:150px;padding-life:1000px;background:url(http://127.0.0.1:5500/bird.gif);background-repeat:no-repeat;background-size:60px;background-position:0 ${50+Math.sin(i)*50}%;'
                    );
            }, i * 10)
        })(i)


    }
</script>